/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yy.bugzillahelp.data.server;

/**
 *
 * @author hualun-alan
 */
public class ServerConfigData {

    private String serverId;
    private boolean autoFlush;
    private long flushInterval;
    private long lastFlushTime;

    public ServerConfigData() {
    }

    public ServerConfigData(String serverId, boolean autoFlush, long flushInterval) {
        this.serverId = serverId;
        this.autoFlush = autoFlush;
        this.flushInterval = flushInterval;
    }

    public String getServerId() {
        return serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public boolean isAutoFlush() {
        return autoFlush;
    }

    public void setAutoFlush(boolean autoFlush) {
        this.autoFlush = autoFlush;
    }

    public long getFlushInterval() {
        return flushInterval;
    }

    public void setFlushInterval(long flushInterval) {
        this.flushInterval = flushInterval;
    }

    public long getLastFlushTime() {
        return lastFlushTime;
    }

    public void setLastFlushTime(long lastFlushTime) {
        this.lastFlushTime = lastFlushTime;
    }

    @Override
    public String toString() {
        return getClass().getCanonicalName()
                + "[Server ID=" + getServerId() + ",Auto Flush=" + isAutoFlush() + ",Flush Interval=" + getFlushInterval() + "(miniseconds),Last Flush Time=" + getLastFlushTime() + "(miniseconds)]";
    }
}
